package com.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.api.common.jwt.TokenIgnore;
import com.api.common.reqres.Request;
import com.api.common.reqres.Response;
import com.api.model.request.NullRequest;
import com.api.model.response.NullResponse;
import com.api.service.UserIntegralService;

import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author cfp
 * @since 2019-10-14
 */
@TokenIgnore
@RestController
public class UserIntegralController {
	@Autowired
	private UserIntegralService userIntegralService;

	@ApiOperation(notes = "我的积分", value = "我的积分")
	@PostMapping(value = "/userIntegral.do")
	public Response<NullResponse> userIntegral(@RequestBody Request<NullRequest> request) throws Exception {
		return userIntegralService.userIntegral(request);
	}
}
